/**
 * 〈博客实体类〉
 *
 * @author 王青杰
 * @create 2018-03-2615:54
 * @since 1.0.0
 */
package com.example.entity;

import lombok.*;

import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import java.io.Serializable;

@Data
@NoArgsConstructor(access = AccessLevel.PUBLIC)
@AllArgsConstructor(access = AccessLevel.PUBLIC)
@Entity

public class TbContent implements Serializable {

    @Id
    @GeneratedValue(strategy = GenerationType.IDENTITY)
    private Integer id; //评论ID

    private String content; //评论内容

    private long viewNum;// 查看人数

    private long likeNum; //点赞数

    private String comment; //评论内容

    private  Integer replyId;//回复Id

    private  String replyComment; //回复内容


    public TbContent(String content, long viewNum, long likeNum, String comment, Integer replyId, String replyComment) {
        this.content = content;
        this.viewNum = viewNum;
        this.likeNum = likeNum;
        this.comment = comment;
        this.replyId = replyId;
        this.replyComment = replyComment;
    }

    public TbContent(String content, long viewNum, long likeNum, String comment) {
        this.content = content;
        this.viewNum = viewNum;
        this.likeNum = likeNum;
        this.comment = comment;
    }

}
